// Copyright (C) 2025 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

.pf-data-explorer-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
  padding: 0.5rem;
  color: var(--pf-color-text-muted);
  overflow-y: auto;

  // Center content when small, scroll when large
  &::before {
    content: "";
    flex-grow: 1;
  }

  &::after {
    content: "";
    flex-grow: 1;
  }

  &__icon {
    font-size: 32px;
  }

  &__message {
    text-align: center;
    max-width: 600px;
    font-size: 0.875rem;
  }

  // Style children (spinner, buttons) to be prominent
  .pf-spinner {
    font-size: 32px;
  }

  &.pf-warning {
    color: var(--pf-color-text);

    .pf-data-explorer-empty-state__icon {
      color: var(--pf-color-warning);
    }
  }
}

.pf-query-stats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--pf-color-text-muted);
}

.pf-query-stats-separator {
  margin: 0 0.25rem;
  color: var(--pf-color-text-disabled);
}
